﻿using System;
using Google.GData.Calendar;

namespace ch.froorider.NGoogleCalendar.googleService
{
    /// <summary>
    /// 
    /// </summary>
	public class EventItem
	{
		private string title;
		private EventEntry entry;

        /// <summary>
        /// Initializes a new instance of the <see cref="EventItem"/> class.
        /// </summary>
        /// <param name="title">The title.</param>
		public EventItem(string title)
		{
			this.title = title;
		}

        /// <summary>
        /// Initializes a new instance of the <see cref="EventItem"/> class.
        /// </summary>
        /// <param name="entry">The entry.</param>
		public EventItem(EventEntry entry)
		{
			this.entry = entry;
			this.title = entry.Title.Text;
		}

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>The title.</value>
		public String Title
		{
			get { return this.title; }
			set { this.title = value; }
		}
	}
}
